@heading-color: #53637D;
@text-color: #53637D;
@header-size: 50px;

#lib{
	.border-radius (@radius: 5px) {
	  border-radius: @radius;
	  -moz-border-radius: @radius;
	  -webkit-border-radius: @radius;
	}
	.box-shadow (@x: 0, @y: 0, @blur: 2px, @color: #CCC) {
	  @args: @x @y @blur @color;
	  box-shadow: @args;
	  -moz-box-shadow:  @args;
	  -webkit-box-shadow:  @args;
	}
	.text-shadow (@x: 1px, @y: 1px, @blur: 1px, @color: #aaa) {
	  @args: @x @y @blur @color;
	  text-shadow: @args;
	  -moz-text-shadow: @args;
	  -webkit-text-shadow: @args;
	}
}

.bigheading(){
		display: block;
		#lib>.text-shadow;
		font-weight: normal;
		color: @heading-color;
		font-size: 28px;
}


html, html *, h1, h2, h3, h4, div, span, pre, p, table, td, li{
	-webkit-font-smoothing: antialiased;
	color: @text-color;
}

html,body{
	height: 100%;
}

body{
	margin: 0px;
}

#navbar{
	position: fixed;
	top: @header-size;
	left: 0px;
	background-attachment: scroll, scroll;
	background-clip: border-box, border-box;
	background-color: transparent;
	background-image: -webkit-linear-gradient(top, rgba(234, 238, 243, 0.199219), rgb(234, 238, 243)), -webkit-linear-gradient(left, rgb(234, 238, 243), rgb(234, 238, 243) 97%, rgb(211, 215, 219));
	background-origin: padding-box, padding-box;
	bottom: 0px;
	color: black;
	display: block;
	font-family: Arial, sans-serif;
	font-size: 13px;
	height: 100%;
	left: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-top: 0px;
	position: fixed;
	width: 216px;
	z-index: 2;
	.nav-heading {
		.bigheading;
		margin-right: 15px;
		text-align: right;

	}
	.nav-main{
		margin: 0px;
		padding: 0px;
		display: block;
		.nav-item{
			font-size: 14px;
			background-color: #eeeeee;
			display: block;
			text-align: right;
			cursor: pointer;
			padding: 10px 20px 10px 10px;
			background: transparent;
			#lib>.text-shadow;
			&:hover{
				background: -webkit-linear-gradient(left, #D3DCE8, #D3DCE8 97%, #AABEDC);
				#lib>.box-shadow;
			}
			&.selected,&.selected:hover{
				background: -webkit-linear-gradient(left, #BBCEE9, #BBCEE9 97%, #AABEDC);
				#lib>.text-shadow(0,0,4px);
			}
		}
	}
}

#content{
	margin-top: @header-size;
	max-width: 800px;
	min-height: 462px;
	height: 100%;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	margin-left: 216px;
	position: relative;
	.shadow{
		position: absolute;
		right: -7px;
		width: 6px;
		height: 100%;
		display: block;
		background-attachment: scroll, scroll;
		background-clip: border-box, border-box;
		background-color: transparent;
		background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.199219), rgb(255,255,255)), -webkit-linear-gradient(right, #fff, #fff 0%, rgb(211, 215, 219));
		background-origin: padding-box, padding-box;
	}
	
	h1.title{
		.bigheading;
		text-align: center;
		background-color: #D3DCE8;
		border-bottom: 1px solid #AABEDC;
		margin: 0px;
		padding: 10px 0px;
	}
	.page{
		position: absolute;
		top: 0px;
		left: 0px;
		width: 100%;
		height: 100%;
		background-color: #EFEFEF;
	}
	.field{
		padding: 15px;
		border-bottom: 1px solid #ddd;
		
		.fieldInput{
			margin-left: 100px;
			font-size: 12px;
		}
		.fieldLabel{
			font-weight: bold;
			#lib>.text-shadow;
		}
		
		.optionContainer{
			display: block;
			font-size: 12px;
			padding: 3px 0px;
		}
		
		&.nohover:hover{
			background-color: inherit;
		}
		
		&:hover{
			background-color: #ddd;
		}
		
		&.nosql{
			padding-bottom: 50px;
			.row{
				border-bottom: 1px dashed #DDD;
				padding: 12px 0px;
				
				.key{
					display: inline-block;
					width: 100px;
					padding-right: 5px;
					text-align: right;
					font-weight: bold;					
				}
				.value{
					text-decoration: underline;
					cursor: pointer;
					color: blue;				
				}
				.mini-menu{
					display: inline-block;
					margin: 0px;
					float: right;
					padding: 0px;
					border: 1px solid #DDD;
					border-radius: 4px;
					background-color: #EFEFEF;
					box-shadow: 0 0 5px #CCC;
					li {
						display: inline-block;
						padding: 2px 5px;
						margin: 0px;
						&:hover{
							background-color: #DDD;
							box-shadow: 0 0 5px #BBB;
							cursor: pointer;
							border-color: #CCC;
							text-shadow: 0 0 2px #FFF;
						}
					}
				}
				
			}
			.addButton{
				display: inline-block;
				margin: 12px 0px 0px 0px;
				padding: 5px;
				border: 1px solid #DDD;
				border-radius: 4px;
				background-color: #EFEFEF;
				box-shadow: 0 0 5px #CCC;
				position: absolute;
				right: 15px;
				
				&:hover{
					background-color: #DDD;
					cursor: pointer;
					box-shadow: 0 0 5px #BBB;
					border-color: #CCC;
					text-shadow: 0 0 2px #FFF;
				}
			}
		}
	}
}

#main{
	position:relative;
}

#header{
	height: @header-size;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	z-index: 10;
	background-color: #DDD;
	.bottomShadow{
		.create_bottomShadow(7px);
	}
	h1{
		font-size: 20px;
		padding-left: 30px;
		#lib>.text-shadow;
		width: 100%;
		height: 100%;
		display: block;
		overflow: hidden;
		font-weight: normal;
	}
}

#overlay{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.2;
	z-index: 1000;
	background-color: black;
	display: none;
}

.dialog{
	position: fixed;
	z-index: 1100;
	background-color: white;
	border-radius: 5px;
	box-shadow: 0 0 100px #000;
	.body{
		width: 100%;
		height: 100%;
		overflow: hidden;	
	}
	.close{
		background-color: #333;
		width: 20px;
		height: 20px;
		border-radius: 12px;
		text-align: center;
		padding: 2px 1px 0px 0px;
		position: absolute;
		top: -10px;
		right: -10px;
		box-shadow: 0 0 12px #666;
		color: white;
		cursor: pointer;
	}
	h1{
		display: block;
		width: 100%;
		font-size: 14px;
		background-color: #DDD;	
		margin: 0px;
		height: 18px;
		padding: 6px 6px 6px 20px;	
		border-radius: 5px 5px 0px 0px;
		box-shadow: 0 2px 2px #CCC;
		text-shadow: 0 0 2px white;
	}
	.row{
		padding: 5px;
		border-bottom: 1px dashed #DDD;
		
		&:first-child{
			padding-top: 15px;
		}
		
		&:last-child{
			border-bottom: none;
			padding-bottom: 15px;
		}
		
		label{
			font-size: 14px;
			font-weight: bold;
			width: 30%;
			display: inline-block;
			text-align: right;
			padding-right: 5px;		
		}
		
		input[type=text]{
			width: 60%;
		}
	}
	.buttonbar{
		background-color: #DDD;
		padding: 5px 18px 5px 5px;
		text-align: right;	
		border-radius: 0px 0px 5px 5px;
		box-shadow: 0 -2px 2px #CCC;
	}
}

.create_bottomShadow(@height: 7px){
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.25)), color-stop(100%,transparent));
	display: block;
	width: 100%;
	height: @height;
	position: absolute;
	bottom: 0 - @height;
	z-index: 10;
}